mergeInto(LibraryManager.library, {
    readStorage: function (key) {
        var jsKey = UTF8ToString(key);
        var storageValue = localStorage.getItem(jsKey);
        
        _unityInstance.SendMessage('WebGLLocalStorage', 'SetStorageKey', jsKey);
        if(storageValue==null)
        {
            console.log("获取[" +jsKey + "]失败" );
        }
        _unityInstance.SendMessage('WebGLLocalStorage', 'SetStorageValue', storageValue);
        _unityInstance.SendMessage('WebGLLocalStorage', 'SaveStorage');
    }
});